package models;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import play.db.jpa.Model;

@Entity
public class Salary extends Model {
	
	public int amount;
	public int month;
	public int year;
	
	@ManyToOne
	public Teacher teacher;
	
	public Salary(int amount, int month, int year, Teacher teacher) {
		
		this.amount = amount;
		this.month = month;
		this.year = year;
		this.teacher = teacher;
	}
	
		

}
